using System;
using System.Collections.Generic;
using System.Text;
using AlumnoEjemplos.TP3D.Collider;

namespace AlumnoEjemplos.TP3D
{
    class PlaceableSobrePlataforma : Placeable
    {
        private Placeable _placeable = null;
        private Plataforma _plataforma = null;

        public PlaceableSobrePlataforma(Plataforma plataforma, Placeable placeable)
        {
            _placeable = placeable;
            _plataforma = plataforma;
        }

        #region Placeable Members

        public Microsoft.DirectX.Vector3 Position
        {
            get { return _placeable.Position; }
            set { _placeable.Position = (this._plataforma.Position - this._placeable.Position) + value; }
        }

        #endregion

        #region Placeable Members


        public void MoveX(float ammount)
        {
            this._placeable.MoveX(ammount);
        }

        #endregion
    }
}
